Hi All,
I am testing something and I was puzzeled in the process of testing my statements and results i got.
My Statement: $file = gci cmd.docx
$file.lastwritetime
January 9th, 2015
My Question is when I tried to SET the lastwritetime to an earlier date it allowed me to change it. I am wondering why it would do that since the truth is I wrote on the file and modified it today February 9th, 2015.
But when I playing with the command $file.LastWriteTime > $file.lastwritetime = "2015-01-01" Why it would let me change the date so this is false information. I didn't modified this file on this date.
It feels like file dates are arbitrary and not set by the system.
Can someone explain what is happening?
Regards
SQL75